<template>
  <div class="app-container">
    <h1>系统参数设置</h1>
    <el-form :model="systemParams" label-width="120px">
      <el-form-item label="时间格式">
        <el-select v-model="systemParams.timeFormat" placeholder="请选择时间格式">
          <el-option label="YYYY-MM-DD" value="yyyy-mm-dd"></el-option>
          <el-option label="DD/MM/YYYY" value="dd/mm/yyyy"></el-option>
          <el-option label="MM/DD/YYYY" value="mm/dd/yyyy"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="数据备份频率">
        <el-select v-model="systemParams.backupFrequency" placeholder="请选择数据备份频率">
          <el-option label="每日" value="daily"></el-option>
          <el-option label="每周" value="weekly"></el-option>
          <el-option label="每月" value="monthly"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="saveParameters">保存设置</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      systemParams: {
        timeFormat: 'yyyy-mm-dd',
        backupFrequency: 'weekly'
      }
    };
  },
  methods: {
    saveParameters() {
      console.log('系统参数已保存:', this.systemParams);
      // 这里可以添加实际的保存逻辑
    }
  }
};
</script>

<style scoped>
.app-container {
  padding: 20px;
}
</style>



